ScxV6Object.Property Method
Gets or sets the value of a database propery of the object.
Parameters
- Name
The name of the property to get or set.
Remarks
The Property method performs a similar function to the Interface method, in that both provide access to the properties of the database object. Once important difference is that Property looks up the interface at run time, whereas Interface looks up the property at compile time.
The following example written in VB.NET shows the Property method being used set the number of retries on a modbus channel to 5.
Dim Svr As ScxV6DbClient.ScxV6Server
' Connect to the server
Svr = New ScxV6DbClient.ScxV6Server
Svr.Connect("MAIN", "", "")
Dim Obj As ScxV6DbClient.ScxV6Object
Obj = Svr.FindObject("Primary Serial Modbus Channel")
Obj.Property("Retries") = 5
' Disconnect
Svr.Disconnect()